package com.zq.behavior.state;

// 等价于context类
public class Car {
    private State current; // 空挡...

    public Car() {
        current = new Off();
    }

    public void setState(State state) {
        current = state;
    }

    public void pull() {
        current.pull(this);
    }
}
